package com.lithium.extractors;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.ResultSetExtractor;

import com.lithium.common.ActiveIngredient;
import com.lithium.common.MedicationCommentTitle;

public class MedicationCommentTitleExtractor implements ResultSetExtractor {

	@Override
	public Object extractData(ResultSet arg0) throws SQLException,
			DataAccessException {

		MedicationCommentTitle title = new MedicationCommentTitle();
		title.setMed_comment_title_id(arg0.getInt(1));
		title.setMed_comment_title(arg0.getString(2));
		title.setLang_locale(arg0.getString(3));
		return title;
		
	}

}
